package com.chuangke.admin.service;

import java.util.List;
import java.util.Map;

import com.chuangke.admin.entity.SysDept;
import com.chuangke.framework.model.Record;
import com.chuangke.framework.service.TreeDictModelService;

/**
 * 机构管理
 * @author chuangke
 * @date Oct 29, 2018
 */
public interface SysDeptService extends TreeDictModelService<SysDept> {
	
	void doSave(SysDept record) ;
	
	List<SysDept> findTree(String condition);

	List<SysDept> findByDeptType(String deptType);
	
	List<String> findDeptByRule(String deptId, String rule);

	/**
	 * 根据单位类型查找父单位
	 * @param deptId
	 * @param deptType
	 * @return
	 */
	SysDept findParentByDeptType(String deptId,String deptType);
	
	/**
	 * clone对象
	 * @return
	 */
	List<SysDept> clone(List<SysDept> deptList) ;
	
	Map<String, Record> getStandardData();
	
	SysDept findByName(String name) ;
}
